/**
 * 读写内部Flash
 */
#ifndef __FLASH_H
#define __FLASH_H
#include "sys.h"

#define FLASH_START_ADDRESS 0x0801F000

uint32_t FLASH_ReadWord(uint32_t addr);
uint16_t FLASH_ReadHalfWord(uint32_t addr);
uint8_t FLASH_ReadByte(uint32_t addr);
void FLASH_WriteHalfWord(uint32_t addr, uint16_t dat);

#endif
